class ActionBitvectorsController < ApplicationController
  # GET /action_bitvectors
  # GET /action_bitvectors.xml
  def index
    @action_bitvectors = ActionBitvector.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @action_bitvectors }
    end
  end

  # GET /action_bitvectors/1
  # GET /action_bitvectors/1.xml
  def show
    @action_bitvector = ActionBitvector.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @action_bitvector }
    end
  end

  # GET /action_bitvectors/new
  # GET /action_bitvectors/new.xml
  def new
    @action_bitvector = ActionBitvector.new

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @action_bitvector }
    end
  end

  # GET /action_bitvectors/1/edit
  def edit
    @action_bitvector = ActionBitvector.find(params[:id])
  end

  # POST /action_bitvectors
  # POST /action_bitvectors.xml
  def create
    @action_bitvector = ActionBitvector.new(params[:action_bitvector])

    respond_to do |format|
      if @action_bitvector.save
        format.html { redirect_to(@action_bitvector, :notice => 'Action bitvector was successfully created.') }
        format.xml  { render :xml => @action_bitvector, :status => :created, :location => @action_bitvector }
      else
        format.html { render :action => "new" }
        format.xml  { render :xml => @action_bitvector.errors, :status => :unprocessable_entity }
      end
    end
  end

  # PUT /action_bitvectors/1
  # PUT /action_bitvectors/1.xml
  def update
    @action_bitvector = ActionBitvector.find(params[:id])

    respond_to do |format|
      if @action_bitvector.update_attributes(params[:action_bitvector])
        format.html { redirect_to(@action_bitvector, :notice => 'Action bitvector was successfully updated.') }
        format.xml  { head :ok }
      else
        format.html { render :action => "edit" }
        format.xml  { render :xml => @action_bitvector.errors, :status => :unprocessable_entity }
      end
    end
  end

  # DELETE /action_bitvectors/1
  # DELETE /action_bitvectors/1.xml
  def destroy
    @action_bitvector = ActionBitvector.find(params[:id])
    @action_bitvector.destroy

    respond_to do |format|
      format.html { redirect_to(action_bitvectors_url) }
      format.xml  { head :ok }
    end
  end
end
